package com.es.designmode.prototype;

/**
 * @author Will
 */
public class ConcretePrototype1 extends Prototype {

    public ConcretePrototype1(String id) {
        super(id);
    }

    /**
     * 克隆实现，不同于 C#
     *
     * @return 克隆对象
     */
    @Override
    public ConcretePrototype1 clone() {
        return (ConcretePrototype1) super.clone();
    }

    @Override
    public ConcretePrototype1 deepClone() {
        return (ConcretePrototype1) super.deepClone();
    }

    @Override
    public ConcretePrototype1 shallowClone() throws CloneNotSupportedException {
        return (ConcretePrototype1) super.shallowClone();
    }
}
